package com.bdd.service.Impl;

import com.bdd.mapper.RoleDAO;
import com.bdd.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleDAO roleDAO;

    @Override
    public List<String> list() {
        return roleDAO.selectAllRoleName();
    }
}
